<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib uri="/WEB-INF/tld/security.tld" prefix="s" %>
<fmt:setBundle basename="messages"/>



<fmt:message key="label.purchaseinstructiondetail.list"/>
<table width="60%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.new"/>			
		</td>
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.line"/>
		</td>	
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.customer"/>
		</td>	
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.product"/>
		</td>	
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.quantity"/>
		</td>	
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.cornquantity"/>
		</td>
		<td class="titulocolumna" align="center" colspan="2">
			<fmt:message key="label.purchaseinstructiondetail.adquired.futures"/>
		</td>
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.type"/>
		</td>
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.purchase.strategy"/>
		</td>
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.type.strategy"/>
		</td>
		<td class="titulocolumna" align="center">
			<fmt:message key="label.purchaseinstructiondetail.status"/>
		</td>
		
	</tr>	
	<c:forEach items="${PURCHASE_INSTRUCTION_DETAILS}" var="detail" varStatus="loop">
		<tr <c:if test="${(loop.index%2)==0}"> class="columnadatoPar"</c:if> <c:if test="${(loop.index%2)!=0}">class="columnadatoNon"</c:if>>
			<td>
				EDITAR
			</td>
			<td valign="top" align="center">			
				<c:out value="${detail.row}" />
			</td>
			<td>
				<c:out value="${detail.customerDescription}" />
			</td>
			<td>
				<c:out value="${detail.itemDescription}" />
			</td>
			<td>
				<c:out value="${detail.itemQuantity}" />
			</td>			
			<td>
				<c:out value="${detail.cornQuantity}" />
			</td>			
			<td>
				<c:out value="${detail.futures}" />
			</td>
			<td>
				<c:out value="${detail.tons}" />
			</td>
			<td>
				<fmt:message key="label.futuretype.${detail.futureTypeId}"/>
			</td>
			<td>
				<fmt:message key="label.strategyid.${detail.instructionStrategyId}"/>
			</td>			
			<td>
				<fmt:message key="label.strategytypeid.${detail.instructionTypeId}"/>
			</td>
			<td>
				<fmt:message key="label.purchaseinstructiondetail.status.${detail.status}"/>
			</td>	
		</tr>
	</c:forEach>
</table>
<br/>

